﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DisplayAllOrders.aspx.cs" Inherits="DisplayAllOrders" %>

<%@ Register assembly="DevExpress.Web.ASPxDataControls.v7.2, Version=7.2.5.0, Culture=neutral, PublicKeyToken=a3fbc9681f1148f7" namespace="DevExpress.Web.ASPxDataControls" tagprefix="dxwdc" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Allar pantanir</title>
    <link href="main.css" type="text/css" rel="Stylesheet" />
</head>
<body>
    <form id="form1" runat="server">
    
    <div>
    <!-- Begin Wrapper -->
   <div id="wrapper">
   
         <!-- Begin Header -->
         <div id="header" 
                   style="border: medium outset #FFFFFF; background-image: none; background-color:#0000cd">			   
		     <table style="width:100%;">
                 <tr>
                     <td valign="middle" width="100">
        		        <asp:ImageButton ID="_ibmHomePage" runat="server" Height="97px" 
                            ImageAlign="Left" ImageUrl="~/Myndir/Logo_nota.JPG" Width="84px" 
                            onclick="_ibmHomePage_Click" />
                          
                     </td>
                     <td align="center" valign="middle">
                        <asp:Label ID="_lblHeaderText" runat="server"  ForeColor="White" Text="Tímaskráning.is" 
                             Font-Bold="True" Font-Size="28pt"></asp:Label>
                    </td>
                    <td width="100">                    
                    </td>
                </tr>
             </table>                                
		 </div>
		 <!-- End Header -->
		 
		 
		 	 <!-- Begin subHeader -->
		 	 <div id="subHeader"
		        style="border: medium outset #FFFFFF; background-image: none; background-color: #0000cd">
		 
		        <table   style="width:100%;">
		            <tr>
		                <td> 
                            <asp:Image ID="_imgConfirm" runat="server" Height="24px" ImageAlign="Right" 
                            ImageUrl="~/Myndir/notaconfirm.JPG" Width="29px" />
                            <asp:Label ID="_lblLogin" runat="server"  ForeColor="White" Text="Innskráning - " Font-Bold="false"></asp:Label>
                            <asp:LinkButton ID="_lbtnCompanyBooking" runat="server" Font-Underline="false"  Font-Bold="false" ForeColor="White" 
                                onclick="_lbtnCompanyBooking_Click">Heimasvæði - </asp:LinkButton>
                            <asp:Label ID="_lblOrders" runat="server"  ForeColor="White" Text="Pantanir" Font-Bold="true"></asp:Label>
                                
		                </td>
                    </tr>	         
                </table>		 
             </div>
		 <!-- End subHeader -->
		 
		 <!-- Begin Left Column -->
		 <div id="leftcolumn"
		        style="border: medium outset #FFFFFF; background-image: none"> 
		    <table   style="width:100%;">
		            <tr>
		                <td> 
                          <asp:LinkButton ID="_lbtnCompanyBooking1" runat="server" ForeColor="White" 
                           onclick="_lbtnCompanyBooking_Click">Heimasvæði</asp:LinkButton>		       		         
		                </td>
                    </tr>	         
		            <tr>
		                <td> 
                            &nbsp;</td>
                    </tr>	         
		            <tr>
		                <td> 
                            <asp:LinkButton ID="_lbtnConfig" runat="server" ForeColor="White" 
                                onclick="_lbtnConfig_Click">Stillingar</asp:LinkButton>
		                </td>
                    </tr>	         
                </table>
         </div>
		 <!-- End Left Column -->
		 
		 <!-- Begin Right Column -->
		 <div id="rightcolumn">
		    
		    <table   style="width:100%;">
		            <tr>
		               <td> 
                         <asp:Label ID="_lblAllOrders" runat="server" Text="Allar pantanir"></asp:Label>		       		         
		               </td>
                    </tr>
                    <tr>
		               <td align="left"> 
                                
                        <asp:GridView ID="_dtgAllorders" runat="server"
                          AutoGenerateColumns="False" 
                          onrowdeleting="_dtgAllorders_RowDeleting" 
                          DataKeyNames="CompanyId,OrderId" CellPadding="4" ForeColor="#333333" 
                          Width="637px" GridLines="None" onrowediting="_dtgAllorders_RowEditing" 
                            onrowdatabound="_dtgAllorders_RowDataBound">
                          <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                          <RowStyle BackColor="#EFF3FB" HorizontalAlign="Center" />
                          <Columns>                      
                         <asp:TemplateField HeaderText="" ItemStyle-Width="100px">
                         <ItemTemplate>
                           <asp:LinkButton ID="_lnkConfirm" 
                             CommandArgument='<%# Eval("OrderId") %>' 
                             CommandName="Edit" runat="server">Staðfesta</asp:LinkButton>
                         </ItemTemplate>
                       </asp:TemplateField>
                        <asp:TemplateField HeaderText="">
                         <ItemTemplate>
                           <asp:LinkButton ID="_lnkDeny" 
                             CommandArgument='<%# Eval("OrderId") %>' 
                             CommandName="Delete" runat="server">Hafna</asp:LinkButton>
                         </ItemTemplate>
                       </asp:TemplateField>
                         <asp:BoundField HeaderText="Dags" DataField="Date" ReadOnly="True" 
                            ItemStyle-Width="150px">
                            <ItemStyle Width="150px"></ItemStyle>
                         </asp:BoundField>
                         <asp:BoundField HeaderText="Tími" DataField="Time" ReadOnly="True" 
                            ItemStyle-Width="150px">
                            <ItemStyle Width="150px"></ItemStyle>
                         </asp:BoundField>
                         <asp:BoundField HeaderText="Viðskiptavinur" DataField="CustomerName" ReadOnly="True" />
                         <asp:BoundField HeaderText="Aðgerð" DataField="Action" ReadOnly="True" />
                         <asp:BoundField HeaderText="Starfsmaður" DataField="Workstation" />
                         <asp:BoundField HeaderText="Staða" DataField="IsBooked" />
                          </Columns>
                        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" HorizontalAlign="Center" />
                        <HeaderStyle BackColor="#0000cd" Font-Bold="True" ForeColor="White" HorizontalAlign="Center"/>
                        <EditRowStyle BackColor="#2461BF" HorizontalAlign="Center"/>
                        <AlternatingRowStyle BackColor="White" HorizontalAlign="Center" />
                      </asp:GridView>		       		         
                      </td>
                    </tr>	    
                    <tr>
		               <td align="right"> 
                         <asp:Button ID="_btnNotifyCustomers" runat="server" Text="Senda áminningar" 
                               onclick="_btnNotifyCustomers_Click" />
		               </td>
                    </tr>
                </table>
         </div>
		        
		 <!-- End Right Column -->
		 
		 <!-- Begin Footer -->
		 <div id="footer" 
             style="border: medium outset #FFFFFF; background-image: none; background-color: #0000cd">
                <table style="width:100%;">
                 <tr>
                     <td align="center">
                        <asp:Label ID="_lblGroup10" runat="server"  ForeColor="White" Text="Hópur10 © 2008" 
                             Font-Bold="False" Font-Size="8pt"></asp:Label>
                    </td>
                </tr>
             </table>
		  </div>
		 <!-- End Footer -->
   </div>
   <!-- End Wrapper -->
    
    </div>
    </form>
</body>
</html>
